package com.fr.web.core.service;

import com.fr.web.core.WebUtils;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class CloseSessionService extends NoOPService
{
  private static CloseSessionService singCase = new CloseSessionService();

  public static CloseSessionService getInstance()
  {
    return singCase;
  }

  public void process(HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse, String paramString)
    throws Exception
  {
    SessionDealWith.closeSession(paramString);
    PrintWriter localPrintWriter = WebUtils.createPrintWriter(paramHttpServletResponse);
    localPrintWriter.write("ok");
    localPrintWriter.flush();
    localPrintWriter.close();
  }

  public boolean accept(String paramString)
  {
    return ("closesessionid".equals(paramString));
  }
}